package org.testis.gui.mvc.model.testdesign;

import org.testis.gui.mvc.model.*;
import org.testis.gui.mvc.controller.testdesign.LoadTestSuiteController;


/**
 *
 * @author Cahit Emir Erel
 */
public class LoadTestSuiteModel extends AbstractModel
{

    private Boolean m_loaderVisibility = false;
    private String m_description = "";
    private String m_suite = "";


    public String getSuite()
    {
        return m_suite;
    }


    public void setSuite(String suite)
    {
        if (suite == null) {
            suite = "";
        }
        String oldSuite = m_suite;
        m_suite = suite;
        firePropertyChange(LoadTestSuiteController.SELECT_SUITE,
                           oldSuite,
                           suite);
    }


    public void setLoaderVisibility(Boolean loaderVisibility)
    {
        if (loaderVisibility == null) {
            return;
        }
        Boolean oldloaderVisibility = m_loaderVisibility;
        m_loaderVisibility = loaderVisibility;
        firePropertyChange(LoadTestSuiteController.SHOW_LOADER,
                           oldloaderVisibility,
                           loaderVisibility);
    }


    public Boolean getLoaderVisibility()
    {
        return m_loaderVisibility;
    }


    public void setSuiteDescription(String description)
    {
        if (description == null) {
            description = "";
        }
        String oldDescription = m_description;
        m_description = description;
        firePropertyChange(LoadTestSuiteController.SHOW_DESCRIPTION,
                           oldDescription,
                           description);
    }


    public String getSuiteDescription()
    {
        return m_description;
    }
}
